chore(data): weekly link freshness pass - #21
Closed
github-actions[bot] wants to merge 1 commit into
Closed
Conversation
Owner
in-c0
added a commit
that referenced
this pull request
Aug 28, 2026
Google's documentation redirects to whichever locale it infers from the client. The checker followed those redirects and recorded the destination as canonical, so a --fix pass pinned English rows to whatever language the runner looked like that day: 212 URLs across the dataset carried ?hl=pt-br, ?hl=ar, ?hl=he and similar. None were there before #17 — this was my regression, and the first automated PR (#21) was about to add six more. Two changes. Requests now send Accept-Language: en-US,en;q=0.9, so the redirect mostly does not happen. And normalise() drops language-selection parameters, so a redirect that only picks a translation classifies as `ok` rather than `moved` and never produces a correction. A genuine move that happens to land on a localised URL still counts as moved, with the language stripped before it is written. --fix now also strips language parameters an earlier pass baked in: 212 cleaned, zero remaining. Side effect worth noting: `moved` drops from 41.7% at the baseline to 0.1%. Some of that fall was the redirect repair working, but part of the original figure was this bug counting translations as moves. Co-authored-by: AvaKim <avajiyo@gmail.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated by
.github/workflows/link-freshness.yml.tools/check-links.mjsprobed every URL in every column, followedredirects, and rewrote the rows whose URL now resolves somewhere else.
Dead URLs are deliberately not touched. A 404 has no known
replacement and inventing one would put a fabrication in the dataset;
they are listed in
datasets/link-health.jsonunderfindingswith"outcome": "dead"for a human to resolve.403and429are recorded asblocked, notdead— being refusedby a bot-detecting CDN says nothing about whether the page exists, so
those never drive a correction either.
Per-run totals are appended to
datasets/link-health-history.csv.The series is the interesting output; a single snapshot is not.